/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springWebTestNG.util;

/**
 *
 * @author winnie
 */
public class StringOperUtil {
    public static String convertByt2Str(byte[] bytes) {
        char[] chars = new char[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
            chars[i] = (char)bytes[i];
        }
        return String.copyValueOf(chars);
    }
    
    public static boolean isEmpty(String s) {
        return (s == null || s.isEmpty());
    }
}
